package com.BaoHua.demo.bean;

import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotBlank;

import com.BaoHua.demo.utils.Groups;

public class RequestTest {

	@Min(value=5,message="最小值为5",groups = Groups.Default.class)
	private int num;
	
	@NotBlank(message="姓名不可为空",groups=Groups.Update.class)
	private String name;
	
	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}
	
	
}
